import 'package:flutter/material.dart';
import 'package:flutter_boost/flutter_boost.dart';
import 'package:interview_success_flutter/components/my_app_bar.dart';

class SettingPage extends StatelessWidget {
  const SettingPage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: const MyAppBar(
        title: '设置',
      ),
      body: ListView(
        children: [
          ListTile(
            leading: const Icon(Icons.pie_chart_outline),
            title: const Text('存储空间'),
            trailing: const Icon(Icons.chevron_right_outlined),
            onTap: () {
              BoostNavigator.instance.push('DeviceStoragePage');
            },
          ),
          const ListTile(
            leading: Icon(Icons.downloading_sharp),
            title: Text('应用缓存'),
            trailing: Icon(Icons.chevron_right_outlined),
          ),
          const ListTile(
            leading: Icon(Icons.notifications_active),
            title: Text('消息通知'),
            trailing: Icon(Icons.chevron_right_outlined),
          ),
          const ListTile(
            leading: Icon(Icons.color_lens),
            title: Text('深色模式'),
            trailing: Icon(Icons.chevron_right_outlined),
          )
        ],
      ),
    );
  }
}
